<script>
	export default {
		onLaunch: function() {
			// #ifdef APP-PLUS
				uni.loadFontFace({
					family: 'PingFangSC',
					// 本地字体路径需转换为平台绝对路径
					source: `url(${plus.io.convertLocalFileSystemURL('_www/static/font/PingFangSC.ttf')})`
				})
			// #endif
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	page{
		font-family: PingFangSC;
		color: var(--color-primary);
		--background: linear-gradient(to right,#3972FF,#A369FF);
		--color-primary: #1F2937;
		--color-primary-active: #326AFF;
	}
	.bg{
		position: fixed;
		width: 870rpx;
		height: 1744rpx;
		left: 50%;
		top: 50%;
		transform: translate(-50%,-50%);
	}
	.form_menu{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		height: 160rpx;
		view{
			position: relative;
			font-size: 28rpx;
			color: #7C8493;
			font-weight: 400;
			line-height: 44rpx;
			padding-bottom: 22rpx;
			&:nth-child(1){
				margin-right: 88rpx;
			}
			&::before{
				position: absolute;
				content: "";
				width: 40rpx;
				height: 8rpx;
				bottom: 0;
				left: 50%;
				transform: translateX(-50%);
				border-radius: 4rpx;
			}
			&.active{
				color: var(--color-primary);
				&::before{
					background: var(--background);
				}
			}
		}
	}
	.form_submit{
		padding: 72rpx 0 0 48rpx;
	}
	.form_code{
		font-size: 32rpx;
		color: #326AFF;
		font-weight: 400;
		padding-right: 32rpx;
	}
</style>
